﻿
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.EditorInput;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace SEPD.CAD.Template.Palette
{
    public partial class TemplatePaletteSetViewModel
    {

        public delegate void CommonVoidDelegate();

        void CommonVoidExecutor(CommonVoidDelegate voidDelegate)
        {
            try
            {
                voidDelegate();
            }
            catch (Exception exp)
            {
                Editor editor = Application.DocumentManager.MdiActiveDocument.Editor;
                editor.WriteMessage($"{MethodBase.GetCurrentMethod().DeclaringType}\n{exp.ToString()} \n ");//命令行文字
                //ExceptionProcess.InfoProcess(MethodBase.GetCurrentMethod().DeclaringType, exp.ToString());
            }
        }

    }
}
